package com.yoomiito.app.model.order;

import android.os.Parcel;
import android.os.Parcelable;

import com.yoomiito.app.model.bean.WuliuInfo;

import java.util.List;

public class OrderDetailGoods implements Parcelable {

    /**
     * balance_paid : null
     * cash_paid : null
     * pay_type : 1
     * num : 2
     * product_type : 2
     * id : 6559644924130633128
     * is_rebate : 0
     * ctime : 2019-07-24 12:07:02
     * product_name : 幸运手镯
     * sn : 6559644924130627325
     * amount_paid : 60.00
     * amount : 30.00
     * shipped_time : null
     * confirm_time : null
     * company_code : null
     * track_no : null
     * status : 0
     * consignee : 啊啦啦了
     * area_name : 内蒙古自治区通辽市库伦旗
     * mobile : 11111111111
     * address : 特警力量力量
     * note :
     * product_img : https://mimitao-cdn.aijiamai.com/Fm-BgkoJpZ2-N7oCvumhgyXJcrAy
     * expressState : 0
     */

    private String balance_paid;
    private String cash_paid;
    private String pay_type;
    private int num;
    private int product_type;
    private long id;
    private int is_rebate;
    private String ctime;
    private String product_name;
    private String sn;
    private String amount_paid;
    private String amount;
    private String shipped_time;
    private String confirm_time;
    private String company_code;
    private String track_no;
    private int status;
    private String consignee;
    private String area_name;
    private String mobile;
    private String address;
    private String note;
    private String product_img;
    private int expressState;
    private String express_company;
    private List<WuliuInfo> express;
    private String product_id;
    private String new_product_id;//用于课程订单  跳转课程订单详情使用
    private List<String> acode;

    private String statusStr;
    private String deduction_account_paid;//可抵扣余额

    public String trackNo;
    public String name;
    public OrderDetailGoods() {
    }

    public String getBalance_paid() {
        return balance_paid;
    }

    public void setBalance_paid(String balance_paid) {
        this.balance_paid = balance_paid;
    }

    public String getCash_paid() {
        return cash_paid;
    }

    public void setCash_paid(String cash_paid) {
        this.cash_paid = cash_paid;
    }

    public String getPay_type() {
        return pay_type;
    }

    public void setPay_type(String pay_type) {
        this.pay_type = pay_type;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getProduct_type() {
        return product_type;
    }

    public void setProduct_type(int product_type) {
        this.product_type = product_type;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getIs_rebate() {
        return is_rebate;
    }

    public void setIs_rebate(int is_rebate) {
        this.is_rebate = is_rebate;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getAmount_paid() {
        return amount_paid;
    }

    public void setAmount_paid(String amount_paid) {
        this.amount_paid = amount_paid;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public Object getShipped_time() {
        return shipped_time;
    }

    public void setShipped_time(String shipped_time) {
        this.shipped_time = shipped_time;
    }

    public String getConfirm_time() {
        return confirm_time;
    }

    public void setConfirm_time(String confirm_time) {
        this.confirm_time = confirm_time;
    }

    public String getCompany_code() {
        return company_code;
    }

    public void setCompany_code(String company_code) {
        this.company_code = company_code;
    }

    public String getTrack_no() {
        return track_no;
    }

    public void setTrack_no(String track_no) {
        this.track_no = track_no;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getArea_name() {
        return area_name;
    }

    public void setArea_name(String area_name) {
        this.area_name = area_name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getProduct_img() {
        return product_img;
    }

    public void setProduct_img(String product_img) {
        this.product_img = product_img;
    }

    public int getExpressState() {
        return expressState;
    }

    public void setExpressState(int expressState) {
        this.expressState = expressState;
    }

    public String getExpress_company() {
        return express_company;
    }

    public void setExpress_company(String express_company) {
        this.express_company = express_company;
    }

    public List<WuliuInfo> getExpressInfo() {
        return express;
    }

    public void setExpressInfo(List<WuliuInfo> express) {
        this.express = express;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public String getNew_product_id() {
        return new_product_id;
    }

    public void setNew_product_id(String new_product_id) {
        this.new_product_id = new_product_id;
    }

    public List<String> getAcode() {
        return acode;
    }

    public void setAcode(List<String> acode) {
        this.acode = acode;
    }

    public String getDeduction_account_paid() {
        return deduction_account_paid;
    }

    public void setDeduction_account_paid(String deduction_account_paid) {
        this.deduction_account_paid = deduction_account_paid;
    }

    protected OrderDetailGoods(Parcel in) {
        balance_paid = in.readString();
        cash_paid = in.readString();
        pay_type = in.readString();
        num = in.readInt();
        product_type = in.readInt();
        id = in.readLong();
        is_rebate = in.readInt();
        ctime = in.readString();
        product_name = in.readString();
        sn = in.readString();
        amount_paid = in.readString();
        amount = in.readString();
        shipped_time = in.readString();
        confirm_time = in.readString();
        company_code = in.readString();
        track_no = in.readString();
        status = in.readInt();
        consignee = in.readString();
        area_name = in.readString();
        mobile = in.readString();
        address = in.readString();
        note = in.readString();
        product_img = in.readString();
        expressState = in.readInt();
        express_company = in.readString();
        express = in.createTypedArrayList(WuliuInfo.CREATOR);
        product_id = in.readString();
        new_product_id = in.readString();
        acode = in.createStringArrayList();
        deduction_account_paid = in.readString();
        statusStr = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(balance_paid);
        dest.writeString(cash_paid);
        dest.writeString(pay_type);
        dest.writeInt(num);
        dest.writeInt(product_type);
        dest.writeLong(id);
        dest.writeInt(is_rebate);
        dest.writeString(ctime);
        dest.writeString(product_name);
        dest.writeString(sn);
        dest.writeString(amount_paid);
        dest.writeString(amount);
        dest.writeString(shipped_time);
        dest.writeString(confirm_time);
        dest.writeString(company_code);
        dest.writeString(track_no);
        dest.writeInt(status);
        dest.writeString(consignee);
        dest.writeString(area_name);
        dest.writeString(mobile);
        dest.writeString(address);
        dest.writeString(note);
        dest.writeString(product_img);
        dest.writeInt(expressState);
        dest.writeString(express_company);
        dest.writeTypedList(express);
        dest.writeString(product_id);
        dest.writeString(new_product_id);
        dest.writeString(deduction_account_paid);
        dest.writeString(statusStr);
    }

    public String getStatusStr() {
        return statusStr;
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<OrderDetailGoods> CREATOR = new Creator<OrderDetailGoods>() {
        @Override
        public OrderDetailGoods createFromParcel(Parcel in) {
            return new OrderDetailGoods(in);
        }

        @Override
        public OrderDetailGoods[] newArray(int size) {
            return new OrderDetailGoods[size];
        }
    };


}
